home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 2 / 002.d81 / jimmy's topic < prev    next >
Encoding:
Text File  |  1984-01-01  |  2.1 KB  |  126 lines

  1.             Jimmy's topic
  2.             ======= =====
  3.  
  4.  
  5.   You know what a computer REALLY is?
  6.  
  7. It's just a fancy bit fiddler, keeping
  8.  
  9. track of thousands of 'yeses' and
  10.  
  11. 'nos' and displaying them in a way
  12.  
  13. you can understand.
  14.  
  15.   You know how it keeps track of all
  16.  
  17. those yeses and nos?  It puts each one
  18.  
  19. in a flip-flop.  (Or a memory location
  20.  
  21. -- a bit different, but it serves
  22.  
  23. about the same purpose.)
  24.  
  25.  
  26.   These days, the only kind of flip-
  27.  
  28. flop most people care about is the
  29.  
  30. master-slave J-K flip-flop.  Some
  31.  
  32. diehards are still using the R-S
  33.  
  34. flip-flop.  Almost nobody uses the
  35.  
  36. old-fashioned cross-coupled and/or/
  37.  
  38. inverter configuration any more.
  39.  
  40.   A J-K flip-flop is actually two
  41.  
  42. flip-flops tied to each other.
  43.  
  44. The second is the slave of the first.
  45.  
  46. There are reset and set lines.
  47.  
  48.   This is the truth table for a
  49.  
  50. J-K flip flop:
  51.  
  52. {CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}
  53. input  J  K  Reset  Set{CBM-N} output Q  Q'
  54.                        {CBM-N}
  55.        0  0    0     0 {CBM-N}        ?  ?'
  56.        0  1    0     0 {CBM-N}        0  1
  57.        1  0    0     0 {CBM-N}        1  0
  58.        1  1    0     0 {CBM-N}        Q' Q''
  59.        x  x    1     0 {CBM-N}        0  1
  60.        x  x    0     1 {CBM-N}        1  0
  61. {CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}
  62.  
  63.   As you can see, if both J & K inputs
  64.  
  65. are 0, the outputs are unpredictable,
  66.  
  67. but will not change from their
  68.  
  69. previous state.
  70.  
  71.   If K alone is 1, the flip flop will
  72.  
  73. be reset (the primary output will be
  74.  
  75. zero).
  76.  
  77.   If J alone is 1, the flip flop will
  78.  
  79. be set (the primary output equals 1).
  80.  
  81.   If both J and K are 1, the outputs
  82.  
  83. toggle, each becoming what the other
  84.  
  85. output was.
  86.  
  87.   If the direct set input is 1, the
  88.  
  89. flip flop is set to 1.
  90.  
  91.   If the direct reset input is 1, the
  92.  
  93. flip flop is reset to 0.
  94.  
  95.  
  96.   The Q output of a flip-flop is
  97.  
  98. ALWAYS the opposite of the Q' output,
  99.  
  100. and vice versa.
  101.  
  102.  
  103.               -----
  104.  
  105.   What makes flip-flops useful is
  106.  
  107. their ability to store information
  108.  
  109. on the outputs independent of the
  110.  
  111. present state of the inputs.  They
  112.  
  113. can do this because they are
  114.  
  115. triggered devices... nothing happens
  116.  
  117. until a clock pulse comes along.
  118.  
  119.   Sorry, my mind just became boggled.
  120.  
  121. I better stop.....
  122.  
  123.                     Jimmy W.
  124.  
  125. --------------------------------------
  126.